package top.hcode.hoj.remoteJudge.entity;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author orangej
 * @since 2024/12/14
 */
@Data
public class RemoteOjLoginDTO {
    private String uid;
    private String username;
    private String password;
    private String captchaCode;

    private byte[] captchaImage;

    private Map<String, String> cookies = new HashMap<>();
    private Map<String, String> headers = new HashMap<>();

    public void addCookie(String key, String value) {
        cookies.put(key, value);
    }

    public void addHeader(String key, String value) {
        headers.put(key, value);
    }
}
